package cn.edu.jxau.service;

import cn.edu.jxau.dao.UserDao;
import cn.edu.jxau.domain.user;

public class insertInfo {

	public static void insert(String useranme, String mail, String phone, String password) {

		// 创建user对象并向user对象中存入信息
		user user = new user();
		user.setUsername(useranme);
		user.setMail(mail);
		user.setPhonenumber(phone);
		user.setPassword(password);
		// 讲user对象传给持久层
		UserDao userdao = new UserDao();
		userdao.add(user);
	}
}
